<template>
	<view>
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" class="banner">
			<swiper-item class="banner">
				<image src="/static/index/1.png.png" mode="widthFix" class="banner"></image>
			</swiper-item>
		</swiper>
		
		<cc-noticeBar :noticeList="noticeList" colors="olive" @click="itemClick"></cc-noticeBar>
		
		<view class="cu-bar">
			<view class="action">
				<text class="cuIcon-titles text-green"></text>
				<text class="text-xl text-bold">数据统计</text>
			</view>
		</view>
		<view class="bz px-2 ">
			<view class="bz p-2 bg-white b-radius2 d-flex flex-nowrap a-center">
				<view class="flex-1"  @click="navTo('/pagesA/performance/performance')">
					<image src="/static/order/1.png" class="icon" mode=""></image>
					<view class="list_name">
						门店月目标
					</view>	
				</view>
				<view class="flex-1"  @click="navTo('/pagesA/performance/performance')">
					<image src="/static/order/2.png" class="icon" mode=""></image>
					<view class="list_name">
						门店业绩
					</view>	
				</view>
				<view class="flex-1"  @click="navTo('/pagesA/performance/performance')">
					<image src="/static/order/3.png" class="icon" mode=""></image>
					<view class="list_name">
						个人月目标
					</view>	
				</view>
				<view class="flex-1"  @click="navTo('/pagesA/performance/performance')">
					<image src="/static/order/4.png" class="icon" mode=""></image>
					<view class="list_name">
						个人业绩
					</view>	
				</view>
			</view>		
		</view>	
		<view class="cu-bar">
			<view class="action">
				<text class="cuIcon-titles text-green"></text>
				<text class="text-xl text-bold">基础信息</text>
			</view>
		</view>
		<view class="bz px-2 ">
			<view class="bz p-2 bg-white b-radius2 d-flex flex-nowrap a-center">
				<view class="flex-1" style="width: 25%;" @click="navTo('/pagesA/store_info/store_info')">
					<image src="/static/order/5.png" class="icon" mode=""></image>
					<view class="list_name">
						门店管理
					</view>	
				</view>
				<view class="flex-1" style="width: 25%;" @click="navTo('/pagesA/staff/staff')">
					<image src="/static/order/6.png" class="icon" mode=""></image>
					<view class="list_name">
						技师管理
					</view>	
				</view>
				<view class="flex-1" style="width: 25%;" @click="navTo('/pagesA/good/good')">
					<image src="/static/order/7.png" class="icon" mode=""></image>
					<view class="list_name">
						商品管理
					</view>	
				</view>
				<view class="flex-1" style="width: 25%;" @click="navTo('/pagesA/coupon/coupon')">
					<image src="/static/order/8.png" class="icon" mode=""></image>
					<view class="list_name">
						优惠卷管理
					</view>	
				</view>
			</view>		
		</view>	
		<view class="cu-bar">
			<view class="action">
				<text class="cuIcon-titles text-green"></text>
				<text class="text-xl text-bold">商品订单管理</text>
			</view>
		</view>
		<view class="bz px-2 ">
			<view class="bz p-2 bg-white b-radius2 d-flex flex-nowrap a-center">
				<view class="flex-1" @click="navTo('/pagesA/order/order')">
					<image src="/static/order/9.png" class="icon" mode=""></image>
					<view class="list_name">
						全部订单
					</view>	
				</view>
				<view class="flex-1" @click="navTo('/pagesA/order/order')">
					<image src="/static/order/10.png" class="icon" mode=""></image>
					<view class="list_name">
						待支付
					</view>	
				</view>
				<view class="flex-1" @click="navTo('/pagesA/order/order')">
					<image src="/static/order/11.png" class="icon" mode=""></image>
					<view class="list_name">
						待发货
					</view>	
				</view>
				<view class="flex-1" @click="navTo('/pagesA/order/order')">
					<image src="/static/order/12.png" class="icon" mode=""></image>
					<view class="list_name">
						已完成
					</view>	
				</view>
				<view class="flex-1" @click="navTo('/pagesA/order/order')">
					<image src="/static/order/13.png" class="icon" mode=""></image>
					<view class="list_name">
						退款
					</view>	
				</view>
			</view>		
		</view>	
		
		<view class="cu-bar">
			<view class="action">
				<text class="cuIcon-titles text-green"></text>
				<text class="text-xl text-bold">预约订单管理</text>
			</view>
		</view>
		<view class="bz px-2 ">
			<view class="bz p-2 bg-white b-radius2 d-flex flex-nowrap a-center">
				<view class="flex-1">
					<image src="/static/order/14.png" class="icon" mode=""></image>
					<view class="list_name">
						全部订单
					</view>	
				</view>
				<view class="flex-1">
					<image src="/static/order/15.png" class="icon" mode=""></image>
					<view class="list_name">
						已预约
					</view>	
				</view>
				<view class="flex-1">
					<image src="/static/order/16.png" class="icon" mode=""></image>
					<view class="list_name">
						已完成
					</view>	
				</view>
				<view class="flex-1">
					<image src="/static/order/17.png" class="icon" mode=""></image>
					<view class="list_name">
						售后
					</view>	
				</view>
			</view>		
		</view>	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				noticeList: [{
						id: 1,
						title: '征程这些伟大精神 串连起中国共产党人的精神谱系'
					},
					{
						id: 2,
						title: '增强水运发展新动能 前5月港口货物吞吐量增长7.9%'
					},
					{
						id: 3,
						title: '多地持续高温 各地采取措施积极应对'
					},
					{
						id: 4,
						title: '中非经贸博览会见证中非合作深度'
					},
					{
						id: 5,
						title: '国安家安得民心 保驾护航促治兴'
					}
				],
				
			}
		},
		methods: {
			itemClick: function(item) {
			
				console.log("点击公告栏条目item = " + JSON.stringify(item));
				uni.showModal({
					title: '点击公告栏条目',
					content: "点击公告栏条目item = " + JSON.stringify(item)
				})
			},
			navTo(e){
				uni.navigateTo({
					url:e
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.banner{
		height: 400rpx;
		width: 100%;
	}
	.content {
		display: flex;
		flex-direction: column;
	
	}
	.icon{
		width: 80rpx;
		height: 80rpx;
		display: block;
		margin: 20rpx auto 0 auto;
	}
	.list_name{
		height: 60rpx;
		line-height: 60rpx;
		text-align: center;
		color: #333;
		font-size: 27rpx;
	}
	.header {
	
		margin-left: 3%;
		width: 94%;
		line-height: 30px;
		font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
		font-weight: 550;
		height: 30px;
		font-size: 14px;
		margin-top: 10px;
	
	}
</style>
